﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;

namespace AuctionHouseDataLibrary
{
    [Serializable]
    [DataContract]
    public class ScanEvent
    {
        [DataMember]
        [Key]
        public int Id { get; set; }

        [DataMember]
        public DateTime LastModDateTime { get; set; }

        [DataMember]
        public bool Horde { get; set; }

        [DataMember]
        public bool Alliance { get; set; }

        [DataMember]
        public bool Netural { get; set; }

        [DataMember]
        [MaxLength(50)]
        public string Realm { get; set; }

        public override string ToString()
        {
            return string.Format("Id: {0}, LastModDateTime: {1}, Horde: {2}, Alliance: {3}, Netural: {4}, Realm: {5}", Id, LastModDateTime, Horde, Alliance, Netural, Realm);
        }
    }
}